3ae760416342519cf96935deb6035fafd0e83efd,cermine-impl/src/main/java/pl/edu/icm/cermine/PdfRawTextWithLabelsExtractor.java,PdfRawTextWithLabelsExtractor,main,#String[]#,99

Before Change


        InternalContentExtractor.THREADS_NUMBER = parser.getThreadsNumber();
 
        if (parser.getConfigurationPath() != null) {
            ContentExtractorConfigLoader.loadConfiguration(parser.getConfigurationPath());
        }
        ContentExtractorConfig config = ContentExtractorConfigLoader.get();
        

After Change


        InternalContentExtractor.THREADS_NUMBER = parser.getThreadsNumber();
 
        if (parser.getConfigurationPath() != null) {
            ContentExtractorConfigLoader.set(new ContentExtractorConfigBuilder()
                    .addConfiguration(parser.getConfigurationPath())
                    .buildConfiguration()
            );
        }
        ContentExtractorConfig config = ContentExtractorConfigLoader.get();